# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=hare-ev
pkgver=0_git20240711
_commit=ed023beb4b4db88e22f608aa001682ac18cad230
pkgrel=0
pkgdesc="Event loop for Hare"
url="https://git.sr.ht/~sircmpwn/hare-ev"
arch="noarch !armhf !ppc64le !s390x !armv7 !x86 !loongarch64" # hare
license="MPL-2.0"
makedepends="hare"
source="
	$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/hare-ev/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make -j1 PREFIX=/usr
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
0567e0d055d367004aa6fa2a4583ccea11da8ff1a6a9436d1332f100f2f3dff64bf73964320ed89c6577b0303e8f82eb8d0c9590e21f665102382fbe4c91ff75  hare-ev-ed023beb4b4db88e22f608aa001682ac18cad230.tar.gz
"
